<?php
	$query="SELECT producer_name, producer_link FROM kpulse_producers";
	$result = mysql_query($query) or die(mysql_error());
	
	while($row = mysql_fetch_assoc($result)){
		echo "<a href=\"producer/". $row["producer_link"] ."\" class=\"moreimg\"><img alt=\"". $row["producer_name"] ."\" src=\"images/logo/". substr($row["producer_link"], 0, -1) .".gif\"></a>";
	}
?>